package com.dacel.ergraph.model;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name = "EVENT")
public class Event implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 5758152656236373695L;

	private int eventId;
	
	private String resume;
	
	private Date startDate;
	
	public Event() {
	}

	@Id
	@Column(name = "EVENT_ID")
	@GeneratedValue
	public int getEventId() {
		return eventId;
	}

	public void setEventId(int eventId) {
		this.eventId = eventId;
	}

	@Basic
	@Column(name = "RESUME", nullable = false, length=255)
	public String getResume() {
		return resume;
	}

	public void setResume(String resume) {
		this.resume = resume;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "START_DATE")
	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}
}
